<template>
    <div>
        <button @click="exit">退出</button>
    </div>
</template>

<script>
export default {
    name:'Mine',
    data(){
        return{
            
        }
    },
    methods:{
        exit(){
            localStorage.removeItem('token')
            localStorage.removeItem("vuex")
            this.$store.commit('play',{})
            this.$router.push({path:'/Login'})

        }
    }
}
</script>

<style>

</style>


